package com.edu.spider.conf;

import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author : ljl
 * @date 创建时间：2018年9月12日 下午3:36:45
 * @version 1.0
 * @parameter
 * @since
 * @return
 */
@Configuration
public class ApplicationConfigurer implements WebMvcConfigurer {

//	@Override
//	public void addArgumentResolvers(
//			List<HandlerMethodArgumentResolver> resolvers) {
//		resolvers.add(new TestMethodArgumentResolver());
//	}

	@Bean
	public RestTemplate restTemplate(RestTemplateBuilder builder) {
	   return builder.build();
	}
	
//	@Override
//	public void addResourceHandlers(ResourceHandlerRegistry registry) {
//		registry.addResourceHandler("/**").addResourceLocations("classpath:/static/");
//	}

}